Polls
interface Polls
This module is used to manage polls.
Types
Functions
Link copied to clipboard
Create a poll
Link copied to clipboard
Delete a poll by its Id.
Link copied to clipboard
Get all the polls for a given bubble. Those polls are returned in the "listener" param.
Link copied to clipboard
Publish a poll by its Id. People will be able to vote.
Link copied to clipboard
Subscribe to changes on a poll. The corresponding poll Id and the bubble Id are provided in the PollChangeListener passed in parameter.
Link copied to clipboard
End a poll by its Id.
Link copied to clipboard
Undo the publish a poll by its Id. All votes are lost and people won't be able to vote anymore.
Link copied to clipboard
Unsubscribe to changes on polls.
Link copied to clipboard
Update a poll. The id in the poll must not be null.
Link copied to clipboard
abstract fun voteForPoll(pollId: String, votes: PollVotes, listener: RainbowListener<Unit, Unit>? = null)
Submit the votes for a poll by its Id.